//
// Created by Apple on 2021/9/10.
//

#include <iostream>
#include <string>
#include <chrono>
#include <thread>
#include "RpcMessage.h"

int main()
{
    std::cout << "c++ standard: "<<__cplusplus << std::endl;
    auto message = Rpc::Message::createMessage();

    std::cout << "requestId: " << message->getRequestId() << std::endl;

    message = Rpc::Message::createMessage();

    std::cout << "requestId: " << message->getRequestId() << std::endl;

    std::this_thread::sleep_for(std::chrono::seconds(1));

    auto times = std::make_shared<TimeOut<std::chrono::seconds>>(std::chrono::seconds(1));

    return 0;
}